const indexInfo = `
  query indexInfo($infoType:String,$adType:String){
    get_myblock(code:$infoType){
      content
    }
    ads(type:$adType){
      imageurl
      linkurl
    }
  }
`;
const balanceInfo = `
  query balance($driver_id:Int){
    driver_info(driver_id:$driver_id){
      money
    }
  }
`;

// const terms = `
// query($type:String){
//   info(type:$type){
//     title
//     content
//   }
// }`;

const accountInfo = `
  query accountInfo($driver_id:Int,$type:String){
    account_total_list(driver_id:$driver_id,type:$type){
     name
     value
    }
    account_list(driver_id:$driver_id){
      type
      value
      path
  }
  }
`;
const accountRecord = `
  query accountRecord($page:Int,$start:String,$end:String,$driver_id:Int){
    moneylog_list(page:$page,start:$start,end:$end,driver_id:$driver_id){
      list{
        memo
        type
        money
        createtime
        use_driver_name
		    item_id
      }
      total
      lastpage
    }
  }
`;

const withdrawInfo = `
  query withdrawInfo($driver_id:Int,$code:String){
    total_list(driver_id:$driver_id){
      money
      total_withdraw_apply
    }
    bank (driver_id:$driver_id){
      real_name
      bank_name
      bank_info
      card_no
    }
    tx_sxf
    get_myblock(code:$code){
      content,
      title
    }
  }
`;

const bindingInfo = `
query bindingInfo($driver_id:Int){
  bank(driver_id:$driver_id){
    id
    real_name
    bank_name
    card_no
    bank_info
 }
}
`;

const recordList = `
  query recordList($page:Int,$start:String,$end:String,$driver_id:Int){
    withdraw_list(page:$page,start:$start,end:$end,driver_id:$driver_id){
      list{
        order_sn
        createtime
        status
        status_text
        bank_name
        type_name
        bank_code
        total_amount
        arrival
        handingfee
        operationtime
        des
      }
      total
      lastpage
    }
  }
`;
const recharge_image = `
  query recharge_image($order_id:Int){
    recharge_image(order_id:$order_id){
      image
    }
  }
`;
const recharge_order = `
  query recharge_order($order_id:Int,$driver_id:Int){
    recharge_order(order_id:$order_id,driver_id:$driver_id){
      order_id
      total_amount
      driver_name
      from_driver_name
      from_price
      status
    }
  }
`;
const recharge_list = `
  query recharge_list($type:Int,$driver_id:Int,$page:Int,$start:String,$end:String){
    recharge_list(type:$type,driver_id:$driver_id,page:$page,start:$start,end:$end){
      list{
          id
          createtime
          order_sn
          status
          status_text
          driver_name
          from_driver_name
          pay_fee
          from_price
      }
      total
      lastpage
      money
      jiang
    }
  }
`;
const getActivityGem = `
  query getActivityGem($driver_id:Int){
    getActivityGem(driver_id:$driver_id){
      nums
      gem
      msg
      count
      gem_bei
    }
  }
`;

export {
  // 充值页面 相关信息
  indexInfo,
  // 充值页面 充值规则
  // terms,
  // 我的账户页面 金额信息
  accountInfo,
  // 我的账户页面 账户金额变动记录
  accountRecord,
  // 提现页面 信息
  withdrawInfo,
  // 提现页面 绑定信息
  bindingInfo,
  // 提现记录页面 记录列表
  recordList,
  // 首页余额
  balanceInfo,
  // 获取充值二维码
  recharge_image,
  // 获取代充订单
  recharge_order,
  // 获取充值订单列表
  recharge_list,
  // 蓝宝石升级
  getActivityGem
};
